import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/rem.js'
import store from './store'
import './mock/index.js'
 import 'lib-flexible/flexible'
import './css/base.css'
createApp(App).use(router).use(store).mount('#app')
router.beforeEach((to, from, next) => {
  /* 路由发生变化修改页面title */
  if (to.meta.title) {
    document.title = to.meta.title
  }
  next()
})